package com.angel.exception;

public class StatusException extends Exception{
    private ErrorInfo info;
    public StatusException(String message) {
        super(message);
    }

    public StatusException(ErrorInfo info,String message){
        super(message);
        this.info=info;
    }

    public StatusException(Object obj,String message){
        super(message);
        this.info=new ErrorInfo();
        this.info.setData(obj.getClass().getName());
    }

    public ErrorInfo getInfo() {
        return info;
    }

    public void setInfo(ErrorInfo info) {
        this.info = info;
    }
}
